home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr13 / aurora2c.zip / SYNTAX.AML < prev    next >
Text File  |  1995-04-07  |  8KB  |  170 lines

  1.  
  2. // ───────────────────────────────────────────────────────────────────
  3. // The Aurora Editor v2.0
  4. // Copyright 1993-1995 nuText Systems. All Rights Reserved Worldwide.
  5. //
  6. // Syntax highlighting definitions (included by MAIN.AML)
  7. // (additional definitions are contained in SYNTAX2.AML)
  8. //
  9. // Note: to conserve editor resources, include only the syntax
  10. // highlighting definitions you actually use.
  11. //
  12. // If you have made any changes, save this file and select 'Recompile
  13. // the Editor' <alt f2> from the Set menu. Exit and re-enter the
  14. // editor for your changes to take effect.
  15. // ───────────────────────────────────────────────────────────────────
  16.  
  17.   object  a
  18.  
  19.   // The 'onsyntax' function is called by the editor to return the
  20.   // syntax highlighting object (defined below) associated with a file
  21.   // name.
  22.  
  23.   function  onsyntax (file)
  24.     forward  getext
  25.     case getext file
  26.       when ".C", ".H", ".CPP"        "c"
  27.       when ".AML"                    "aml"
  28.       when ".DOX"                    "dox"
  29.       otherwise                      ''
  30.     end
  31.   end
  32.  
  33.  
  34.   // syntax highlighting for Aurora Macro Language files (.AML)
  35.   object  aml
  36.  
  37.     syntax
  38.       'bfin'                          // options:
  39.                                       //   b=show through marked block
  40.                                       //   c=don't highlight cursor line
  41.                                       //   f=use only foreground colors
  42.                                       //   i=ignore keyword case
  43.                                       //   n=highlight numbers
  44.       '()=+-*/<>|&^,[]:'              // symbol set
  45.       '"\''                           // string characters
  46.       '\\'                            // string literal char
  47.       ''                              // numeric symbol
  48.       '//'          0                 // eol comment 1 / start column
  49.       ''            0                 // eol comment 2 / start column
  50.       '/*'          '*/'              // multi-line comment 1
  51.       ''            ''                // multi-line comment 2
  52.       0                               // number of lines to scan backward
  53.  
  54.       color brightcyan   on black     // keyword color
  55.       color gray         on cyan      // symbol color
  56.       color brightred    on black     // string color
  57.       color brightred    on black     // numeric color
  58.       color brightgreen  on black     // eol1 comment color
  59.       color yellow       on black     // eol2 comment color
  60.       color brightgreen  on black     // comment1 color
  61.       color brightgreen  on black     // comment2 color
  62.  
  63.     keyword
  64.       and, break, call, case, color, databuf, define, do, end, else,
  65.       elseif, eval, forward, function, if?, if, include, key, loop, mod,
  66.       menubar, menu, not, or, otherwise, object, queue, return, repeat,
  67.       ref, shl, shr, send, setxfun, setx, setxobj, setobj, set, sizeof,
  68.       then, until, var, when, while
  69.  
  70.  
  71.   // syntax highlighting for C/C++ files (.C, .CPP, .H)
  72.   object  c
  73.  
  74.     syntax
  75.       'bfn'                           // options:
  76.                                       //   b=show through marked block
  77.                                       //   c=don't highlight cursor line
  78.                                       //   f=use only foreground colors
  79.                                       //   i=ignore keyword case
  80.                                       //   n=highlight numbers
  81.       '()[]{}.=+-*/:;<>|&,~!^?'       // symbol set
  82.       '\'"'                           // string characters
  83.       '\\'                            // string literal char
  84.       ''                              // numeric symbol
  85.       '//'          0                 // eol comment 1 / start column
  86.       ''            0                 // eol comment 2 / start column
  87.       '/*'          '*/'              // multi-line comment 1
  88.       ''            ''                // multi-line comment 2
  89.       0                               // number of lines to scan backward
  90.  
  91.       color brightcyan   on black     // keyword color
  92.       color gray         on cyan      // symbol color
  93.       color brightred    on black     // string color
  94.       color brightred    on black     // numeric color
  95.       color brightgreen  on black     // eol1 comment color
  96.       color yellow       on black     // eol2 comment color
  97.       color brightgreen  on black     // comment1 color
  98.       color brightgreen  on black     // comment2 color
  99.  
  100.     keyword
  101.       #define, #else, #endif, #ifdef, #ifndef, #if, #include, #line,
  102.       #undef, asm, auto, break, case, catch, cdecl, char, class, const,
  103.       continue, default, delete, double, do, else, enum, extern, far,
  104.       float, for, friend, goto, huge, if, inline, interrupt, int, long,
  105.       near, new, operator, pascal, private, protected, public, register,
  106.       return, short, signed, sizeof, static, struct, switch, template,
  107.       this, typedef, union, unsigned, virtual, void, volatile, while
  108.  
  109.  
  110.   // syntax highlighting for Aurora document files (.DOX)
  111.   object  dox
  112.  
  113.     syntax
  114.       'bfn'                           // options:
  115.                                       //   b=show through marked block
  116.                                       //   c=don't highlight cursor line
  117.                                       //   f=use only foreground colors
  118.                                       //   i=ignore keyword case
  119.                                       //   n=highlight numbers
  120.       '.:,-+*;=()[]<>{}|─│┌┐┘└┤┴┬├┼'  // symbol set
  121.       '"\''                           // string characters
  122.       '\\'                            // string literal char
  123.       ''                              // numeric symbol
  124.       '//'          0                 // eol comment 1 / start column
  125.       '  '          0                 // eol comment 2 / start column
  126.       '/*'          '*/'              // multi-line comment 1
  127.       ' '           ' '               // multi-line comment 2
  128.       0                               // number of lines to scan backward
  129.  
  130.       color brightcyan   on black     // keyword color
  131.       color gray         on cyan      // symbol color
  132.       color white        on white     // string color
  133.       color brightred    on black     // numeric color
  134.       color brightgreen  on black     // eol1 comment color
  135.       color yellow       on black     // eol2 comment color
  136.       color brightgreen  on black     // comment1 color
  137.       color brightcyan   on black     // comment2 color
  138.  
  139.  
  140.   // default syntax highlight object (for highlighting words in
  141.   // text files)
  142.   object  syndef
  143.  
  144.     syntax
  145.       'bfi'                           // options:
  146.                                       //   b=show through marked block
  147.                                       //   c=don't highlight cursor line
  148.                                       //   f=use only foreground colors
  149.                                       //   i=ignore keyword case
  150.                                       //   n=highlight numbers
  151.       '.,;:\'"?!()<>|'                // symbol set
  152.       ''                              // string characters
  153.       ''                              // string literal char
  154.       ''                              // numeric symbol
  155.       ''            0                 // eol comment 1 / start column
  156.       ''            0                 // eol comment 2 / start column
  157.       ''            ''                // multi-line comment 1
  158.       ''            ''                // multi-line comment 2
  159.       0                               // number of lines to scan backward
  160.  
  161.       color brightcyan   on black        // keyword color
  162.       color white        on white        // symbol color
  163.       color brightred    on brightred    // string color
  164.       color brightred    on brightred    // numeric color
  165.       color brightgreen  on brightgreen  // eol1 comment color
  166.       color yellow       on yellow       // eol2 comment color
  167.       color brightgreen  on brightgreen  // comment1 color
  168.       color brightcyan   on brightcyan   // comment2 color
  169.  
  170.